<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
	
<ui:composition>
	<rich:spacer height="8" />

 <f:subview >
	
		<!-- Bang du lieu -->
		<h:form>
			<div style="width: 97%;">
					<h:dataTable id="list" value="#{baoCao.list}" var="item" 
								columnClasses="column" headerClass="TableHeader" rowClasses="ROW1,ROW2" footerClass="TableFooter" 
					       style="width:100%; margin-left:0px;margin-top: 0px" cellspacing="1px;" rows="10">
						<h:column >
							<f:facet name="header">
								<h:outputText value="STT"></h:outputText>
							</f:facet>
							<h:outputText value="#{item.stt}"></h:outputText>
							<f:facet name="footer">
								<rich:spacer></rich:spacer>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Họ tên"></h:outputText>
							</f:facet>
							<h:outputText value="#{item.ten}"></h:outputText>
						</h:column>
						
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cơ quan"></h:outputText>
							</f:facet>
							<h:outputText value="#{item.coquan}"></h:outputText>
						</h:column>
						
						<h:column>
							<f:facet name="header">
								<h:outputText value="Nước đến"></h:outputText>
							</f:facet>
							<h:outputText value="#{item.nuocden}"></h:outputText>
						</h:column>
						
						<h:column>
							<f:facet name="header">
								<h:outputText value="Mục đích"></h:outputText>
							</f:facet>
							<h:outputText value="#{item.mucdich}"></h:outputText>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Thời gian"></h:outputText>
							</f:facet>
							<h:outputText value="#{item.thoigian}"></h:outputText>
						</h:column>
					
						
					</h:dataTable>
						<!-- phan trang -->
						<rich:datascroller align="right"  for="list" maxPages="10" />
						<!-- ket thuc phan trang -->
						</div>
				</h:form>
		<!-- Ket thuc bang du lieu -->
		
</f:subview>	
</ui:composition>
</html>

